package business.report.impl;

import business.report.CreditServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.CreditService;
import report.domain.CreditServiceCriteria;
import report.mapper.CreditServiceMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "creditServiceService")
public class CreditServiceServiceImpl implements CreditServiceService{
    @Autowired
    CreditServiceMapper creditServiceMapper;
    @Override
    public List<CreditService> getCreditService() {
        CreditServiceCriteria criteria = new CreditServiceCriteria();
        criteria.createCriteria().getAllCriteria();
        return creditServiceMapper.selectByExample(criteria);
    }
}
